import QtQuick
import QtQuick.Controls

Item {
    id: showWindowBack
    width: backWidth
    height: backHeight

    property real backWidth: 600        //  背景宽度
    property real backHeight: 80        //  背景高度

    property real showWidth: 300        //  展示宽度
    property real showHeight: 80        //  展示高度

    property real titleWidth: 200       //  标题宽度
    property real titleHeight: 80       //  标题高度

    property string titleContent        //  标题内容
    property real titleSize: 30         //  标题字体大小

    property real titleMargin: 0        // 标题与文本的间隔距离

    property string showContent         // 显示内容
    property real showSize: 30          // 显示内容大小
    property string showColor: "white"  // 展示内容颜色

    Rectangle{
        width: titleWidth
        height: titleHeight
        anchors.left: parent.left
        anchors.verticalCenter: parent.verticalCenter
        color: "transparent"

        Text{
            anchors.centerIn: parent
            font.pixelSize: titleSize
            font.bold: true
            text: titleContent
        }
    }

    Rectangle{
        width: showWidth
        height: showHeight
        anchors.left: parent.left
        anchors.leftMargin: titleWidth
        anchors.verticalCenter: parent.verticalCenter
        radius: 5
        color: "black"

        Text{
            id:showText
            anchors.centerIn: parent
            font.pixelSize: showSize
            font.bold: true
            visible: true
            text: showContent
            color: showColor
        }
    }




}
